package com.tanhua.manage.job;

import com.tanhua.manage.service.VoiceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class VoiceJob {

    @Autowired
    private VoiceService voiceService;

    @Scheduled(cron = "0 0 6 * * ?")
    public void voiceSound() {

        log.info("执行统计开始：--------->");
        voiceService.reRemainingTimes();
        log.info("执行统计结束：--------->");
    }
}
